﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyModels.Base
{
    public class BaseLog
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")]
        public long Id { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [SplitField]
        public DateTime? DateTime { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public string? Level { get; set; }

        /// <summary>
        /// 记录的消息内容
        /// </summary>
        [SugarColumn(ColumnDataType = "longtext,text,clob")]
        public string? Message { get; set; }
        /// <summary>
        /// 记录消息使用的模版
        /// </summary>
        [SugarColumn(ColumnDataType = "longtext,text,clob")]
        public string? MessageTemplate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDataType = "longtext,text,clob")]
        public string? Properties { get; set; }
    }
}
